﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// All administrator pages should derive from this page
/// </summary>
public class AdminPage : WebPage
{
    //TODO: Check if obsolete and then dervice from webpage instead
    public AdminPage()
    {
    }
    protected void CheckAdmin()
    {
        if (!IsAdmin)
        {
            //Server.Transfer("~/Admin.aspx",true);
            Response.Redirect("~/Admin.aspx");
        }
    }
}
